package com.tom.exceptionHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.tom.domain.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

@Component
public class ExceptionUtils {
    public static User exceptionHandler(@PathVariable("id") Long id, BlockException be){
        return new User("资源限流",1);
    }
}
